package com.itheima.ydd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.ydd.common.R;
import com.itheima.ydd.dto.AdvposDto;
import com.itheima.ydd.dto.PageInfo;
import com.itheima.ydd.pojo.YddAdvpos;
import org.springframework.http.ResponseEntity;

import java.util.List;

public interface YddAdvposService extends IService<YddAdvpos> {

    /**
     * 广告位修改
     * @param yddAdvpos
     * @return
     */
    ResponseEntity<R<String>> updateYddAdvops(YddAdvpos yddAdvpos);

    /**
     * 广告位删除
     * @param id
     * @return
     */
    ResponseEntity<R<String>> delYddAdvops(Integer id);

    /**
     * 广告位添加
     * @param yddAdvpos
     * @return
     */
    ResponseEntity<R<String>> addYddAdvops(YddAdvpos yddAdvpos);

    /**
     * 分页
     * @param page
     * @param limit
     * @param advposdesc
     * @param advposname
     * @return
     */
    ResponseEntity<R<PageInfo<AdvposDto>>> findPage(Integer page, Integer limit, String advposdesc, String advposname);
    /**
     * 查询全部数据
     * @return
     */
    ResponseEntity<R<List<YddAdvpos>>> findAllData();

}
